import type { ConsuleTime } from '@/enums'
import { flagOptions, timeOption } from '@/services/constants'

export const getIllnessText = (time?: ConsuleTime) => {
  return timeOption.find((item) => item.value === time)?.label
}
// 获取是否就诊文字
export const getConsultText = (flag?: 0 | 1) => {
  return flagOptions.find((item) => item.value == flag)?.label
}
